package cn.lingyangwl.framework.ip2region.factory;

import cn.lingyangwl.framework.ip2region.handler.Ip2RegionOfflineHandler;

import javax.servlet.http.HttpServletRequest;

/**
 * @author shenguangyang
 */
public interface Ip2RegionOfflineFactory {
    default Ip2RegionOfflineHandler create(HttpServletRequest request) {
        throw new UnsupportedOperationException("请指定一个离线ip包");
    }

    default Ip2RegionOfflineHandler create(String ip) {
        throw new UnsupportedOperationException("请指定一个离线ip包");
    }
}
